<!-- addEditSubject.html 2018-04-26 10:04:12-->
#@HplusLayout()
#define cssStyle()
#end
#define content()
<div style="padding:10px;height: 100%">
	<form method="post" class="form-horizontal required-validate" action="saveSubject" novalidate="novalidate" onsubmit="return validateCallback(this,listDialogAjaxDone)">
		<input type="hidden" name="tiebaSubject.id" value="#(tiebaSubject.id)"/>
		
				<div class="form-group">
				<label class="col-xs-2 control-label">名称：</label>
				<div class="col-xs-9">
	<input type="text" class="form-control required" name="tiebaSubject.name" value="#(tiebaSubject.name)"/>
				</div>
		</div>
		<div class="form-group">
				<label class="col-xs-2 control-label">代码：</label>
				<div class="col-xs-9">
	<input type="text" class="form-control required" name="tiebaSubject.code" value="#(tiebaSubject.code)"/>
				</div>
		</div>
		<div class="form-group">
				<label class="col-xs-2 control-label">封面头像：</label>
				<div class="col-xs-9">
    <div class="input-group">
    	<input type="text" class="form-control " name="tiebaSubject.headimg" id="tiebaSubject_headimg" value="#(tiebaSubject.headimg)"/>
   		<span class="input-group-btn">
   			<button class="btn btn-primary" type="button" onclick="layer.open({content:'#(res_path)#(PRE_PATH)/common/files/upload?directory=tieba&input=tiebaSubject_headimg',area: ['600px', '200px'],type: 2,title: '上传文件'})">上传</button>
   		</span>
   	</div>
				</div>
		</div>
		<div class="form-group">
				<label class="col-xs-2 control-label">描述：</label>
				<div class="col-xs-9">
	<textarea name="tiebaSubject.describe" class="form-control  ">#(tiebaSubject.describe)</textarea>
				</div>
		</div>
		<div class="form-group">
				<label class="col-xs-2 control-label">列表模板：</label>
				<div class="col-xs-4">
	<input type="text" class="form-control required" name="tiebaSubject.list_tpl" value="#(tiebaSubject.list_tpl)"/>
				</div>
				<label class="col-xs-2 control-label">详情模板：</label>
				<div class="col-xs-4">
	<input type="text" class="form-control required" name="tiebaSubject.show_tpl" value="#(tiebaSubject.show_tpl)"/>
				</div>
		</div>
		<div class="form-group">
				<label class="col-xs-2 control-label">状态：</label>
				<div class="col-xs-9">
		#for(item:data("ENABLE_FLAG"))
		<label style="font-weight:normal;line-height: 37px;margin-bottom: 0px;padding-right: 5px"><input class="required" type="radio" name="tiebaSubject.enable_flag" #if(tiebaSubject.enable_flag)#if(tiebaSubject.enable_flag==item.key)checked="checked"#end#elseif(item.key=="T")checked="checked"#end value="#(item.key)"/> #(item.value.name) </label>
		#end
				</div>
		</div>
		<div class="form-group">
			<div class="col-xs-8 col-xs-offset-3">
				<button type="submit" class="btn btn-primary">保存</button>
			</div>
		</div>
	</form>
</div>
#end
#define js()
<script src="#(res_path)/hplus/js/plugins/validate/jquery.validate.min.js"></script>
<script src="#(res_path)/hplus/js/plugins/validate/messages_zh.min.js"></script>
#end
#define jsFunction()
<script>
$(function(){
});
</script>
#end
